package com.willian.andrappfw.network.body;


import com.willian.andrappfw.application.WApplication;
import com.willian.andrappfw.utils.WPreferenceManager;
import com.willian.andrappfw.utils.Utils;

import java.io.Serializable;
import java.util.Locale;
import java.util.TimeZone;

public class BaseRequestBody implements Serializable {

    private String language = Locale.getDefault().getLanguage();
    private String appVersion = WApplication.ContextHolder.getVersionName();
    private String systemVersion = String.valueOf(android.os.Build.VERSION.SDK_INT);
    private String timeZone = TimeZone.getDefault().getID();
    private int userId = WPreferenceManager.getUserId();
    private String sn = Utils.getSerialNumber();


    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getSystemVersion() {
        return systemVersion;
    }

    public void setSystemVersion(String systemVersion) {
        this.systemVersion = systemVersion;
    }

    public String getTimeZone() {
        return timeZone;
    }

    public void setTimeZone(String timeZone) {
        this.timeZone = timeZone;
    }
}
